<?php
class Userrule_Data_Insertdata implements Userrule_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null){
        $variables['query'] = "INSERT INTO user_rules(username, rule_name) VALUES('".$variables['post']['username']."','".$variables['post']['rule_name']."');";
        return $this->core_controller_dataoperation->main($variables);
    }
}
